import request from '@/utils/request'

// 查询牌桌详细
export function listAreas() {
  return request({
    url: '/qipairoom/deskInfo/getareas',
    method: 'get'
  })
}

// 查询牌桌列表
export function listDeskInfo(query) {
  return request({
    url: '/qipairoom/deskInfo/list',
    method: 'get',
    params: query
  })
}

// 查询牌桌详细
export function getDeskInfo(deskId) {
  return request({
    url: '/qipairoom/deskInfo/' + deskId,
    method: 'get'
  })
}

// 新增牌桌
export function addDeskInfo(data) {
  return request({
    url: '/qipairoom/deskInfo',
    method: 'post',
    data: data
  })
}

// 修改牌桌
export function updateDeskInfo(data) {
  return request({
    url: '/qipairoom/deskInfo',
    method: 'put',
    data: data
  })
}

// 删除牌桌
export function delDeskInfo(deskId) {
  return request({
    url: '/qipairoom/deskInfo/' + deskId,
    method: 'delete'
  })
}
